def deduplication(self,nums):
    for i in range(len(nums)):
        if nums[i]==self:
            return i

print(deduplication(2,[1,2,5,6,8]))

h='hello'
print(h.center(20,'*'))
print(h.zfill(20))
print('软件{1}班，在{0}上课，现在是下午{2}'.format('1804','6702','16:12'))

my_list=['百度','www.baidu.com']
other_list=['网易','www.163.com']
print("网站名:{0[0]},网址:{0[1]}".format(my_list))

print('{:.2f}'.format(3.1415926))
print('{:0>2d}'.format(5))
print('{:,}'.format(1000000))
print('{:^10d}'.format(10))
